package com.langxin.erp.model;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotBlank;

/**
 * 产品
 * @author guqj
 *
 */
public class ProductInfo extends BaseInfo {

	private static final long serialVersionUID = -2176308908017807221L;
	// 类型
	@NotBlank(message = "产品类型不能为空")
	private Integer type;
	private String  typeName;
	@NotBlank(message = "产品名称不能为空")
	private String name;
	// 描述
	@NotBlank(message = "描述不能为空")
	private String descr;
	// 图片
	@NotBlank(message = "请上传图片")
	private String image;
	// 正文
	@NotBlank(message = "正文不能为空")
	private String context;
	// 淘宝url
	private String tbUrl;
	// 标签
	private String tag;
	// 标签颜色
	private String color;
	// 是否精品推荐
	@NotNull(message = "是否精品推荐不能为空")
	private Integer isGifts;
	// 阅读次数
	private Integer readTime;
	// 状态 1 可用  0 无效
	private Integer status;
	
	
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescr() {
		return descr;
	}
	public void setDescr(String descr) {
		this.descr = descr;
	}
	public String getImage() {
		return image;
	}
	public void setImage(String image) {
		this.image = image;
	}
	public String getContext() {
		return context;
	}
	public void setContext(String context) {
		this.context = context;
	}
	public String getTbUrl() {
		return tbUrl;
	}
	public void setTabUrl(String tbUrl) {
		this.tbUrl = tbUrl;
	}
	public String getTag() {
		return tag;
	}
	public void setTag(String tag) {
		this.tag = tag;
	}
	public String getColor() {
		return color;
	}
	public void setColor(String color) {
		this.color = color;
	}
	public Integer getIsGifts() {
		return isGifts;
	}
	public void setIsGifts(Integer isGifts) {
		this.isGifts = isGifts;
	}
	public Integer getReadTime() {
		return readTime;
	}
	public void setReadTime(Integer readTime) {
		this.readTime = readTime;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	
	
}
